import java.awt.Dimension;
import java.awt.TextArea;
import java.util.List;



public class Reporter extends TextArea {	
	/**
	 * warning
	 */
	private static final long serialVersionUID = 1L;
	
	// INSTANCE FIELDS **********************************************
	/**
	 * list of keywords defined in the gui.
	 */
	private List<String> keywords;	
	
	// CONSTRUCTORS *************************************************
	/**
	 * constructs a text area to recieve and display the string parsed by the 
	 * DataGatherer.
	 */
	public Reporter() {
		super.setPreferredSize(new Dimension(800,450));		
	}
	
	// ACCESSORS ****************************************************
	/**
	 * allows the DataGatherer to retrieve the list.
	 * @return keywords defined in the gui
	 */
	public List<String> getKeywords() {
		return keywords;
	}	
	
	// MUTATORS *****************************************************
	/**
	 * allows the gui to forward the list of keywords.
	 */
	public void setKeywords(List<String> the_keywords) {
		keywords = the_keywords;
	}
	
	/**
	 * allows the DataGatherer to deposit the output string.
	 * @param stuff parsed into string by the DataGatherer.
	 */
	public void putStuff(String stuff) {		
		append("\n" + stuff);
	}
}
